description = "Testcontainers :: HiveMQ"

dependencies {
    api(project(":testcontainers"))
    api("org.jetbrains:annotations:24.1.0")

    shaded("org.apache.commons:commons-lang3:3.14.0")
    shaded("commons-io:commons-io:2.16.1")
    shaded("org.javassist:javassist:3.30.2-GA")
    shaded("org.jboss.shrinkwrap:shrinkwrap-api:1.2.6")
    shaded("org.jboss.shrinkwrap:shrinkwrap-impl-base:1.2.6")
    shaded("net.lingala.zip4j:zip4j:2.11.5")

    testImplementation("org.junit.jupiter:junit-jupiter:5.10.2")
    testImplementation(project(":junit-jupiter"))
    testImplementation("com.hivemq:hivemq-extension-sdk:4.28.1")
    testImplementation("com.hivemq:hivemq-mqtt-client:1.3.3")
    testImplementation("org.apache.httpcomponents:httpclient:4.5.14")
    testImplementation("ch.qos.logback:logback-classic:1.5.6")
    testImplementation 'org.assertj:assertj-core:3.25.3'
}

test {
    useJUnitPlatform()
    testLogging {
        events "passed", "skipped", "failed"
    }
    javaLauncher = javaToolchains.launcherFor {
        languageVersion = JavaLanguageVersion.of(11)
    }
}

compileTestJava {
    javaCompiler = javaToolchains.compilerFor {
        languageVersion = JavaLanguageVersion.of(11)
    }
    options.release.set(11)
}
